//package com.zhu.tool_test.spring_cache;
//
//import org.springframework.cache.CacheManager;
//import org.springframework.cache.annotation.CachingConfigurerSupport;
//import org.springframework.cache.annotation.EnableCaching;
//import org.springframework.cache.interceptor.CacheErrorHandler;
//import org.springframework.cache.interceptor.CacheResolver;
//import org.springframework.cache.interceptor.KeyGenerator;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @program: tool_test
// * @description:
// * @author: ggBall
// * @create: 2020-11-29 13:13
// **/
//@Configuration
//@EnableCaching
//public class CatcheManager extends CachingConfigurerSupport {
//
//
//    /**
//     * Return the cache manager bean to use for annotation-driven cache management.
//     * A default CacheResolver will be initialized behind the scenes with this cache manager.
//     * For more fine-grained management of the cache resolution, consider setting the CacheResolver directly.
//     * @return
//     */
//    @Bean // important!
//    @Override
//    public CacheManager cacheManager() {
//        // configure and return CacheManager instance
//        return null;
//    }
//
//
//    /**
//     * Return the CacheResolver bean to use to resolve regular caches for annotation-driven cache management.
//     * This is an alternative and more powerful option of specifying the CacheManager to use.
//     * If both a cacheManager() and #cacheResolver() are set, the cache manager is ignored.
//     * @return
//     */
//    @Bean // important!
//    @Override
//    public CacheResolver cacheResolver() {
//        // configure and return CacheResolver instance
//        return null;
//    }
//
//    /**
//     * Return the key generator bean to use for annotation-driven cache management. Implementations must explicitly declare @Bean, e.g.
//     * @return
//     */
//    @Bean // important!
//    @Override
//    public KeyGenerator keyGenerator() {
//        // configure and return KeyGenerator instance
//        return null;
//    }
//
//    /**
//     * Return the CacheErrorHandler to use to handle cache-related errors.
//     * By default,SimpleCacheErrorHandler is used and simply throws the exception back at the client.
//     * @return
//     */
//    @Bean // important!
//    @Override
//    public CacheErrorHandler errorHandler() {
//        // configure and return CacheErrorHandler instance
//        return null;
//    }
//
//}
